package com.funkids.prxis.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.funkids.common.dto.GoodsDto;
import com.funkids.prxis.entity.SysGoods;
import com.funkids.prxis.mapper.SysGoodsMapper;
import com.funkids.prxis.service.ISysGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author funkids
 * @since 2023-03-22
 */
@Service
public class SysGoodsServiceImpl extends ServiceImpl<SysGoodsMapper, SysGoods> implements ISysGoodsService {

    @Autowired
    SysGoodsMapper goodsMapper;

    @Override
    public Page<GoodsDto> getGoodsPage(Page page, String name) {
        return goodsMapper.listByName(page,name);
    }
}
